package com.xzy.service.impl;

import com.xzy.entities.UserEntity;
import com.xzy.service.UserService;
import org.springframework.stereotype.Service;

/**
 * 用户管理
 *
 * @author xzy
 * @date 2022/1/7 16:00
 */
@Service
public class UserServiceImpl implements UserService {
    /**
     * 根据主键查询用户信息
     *
     * @param id 用户ID
     * @return 用户信息
     */
    @Override
    public UserEntity findByPrimaryKey(Long id) {
        return new UserEntity(1001L, "张三", 23, "m", "15268897788", "浙江省杭州市西湖区");
    }
}
